package com.chance.cc.crawler.prod.command.trigger.domain.news.sohu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.sohu.SoHuCommonScript;
import com.chance.cc.crawler.prod.command.job.domain.news.sohu.realtime.SoHuSeriesArticleRealtimeSchedulerCrawlerJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

/**
 * @ClassName song
 * @Description TODO
 * @Author ding
 * @Date 2021/9/3 17:31
 * @Version 1.0
 **/
public class SoHuSeriesArticleCrawlerScheduleTrigger {
    public static void main(String[] args) {

        publishSoHuRealtimeScheduleTriggerInfo();
    }

    public static void publishSoHuRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = SoHuSeriesArticleRealtimeSchedulerCrawlerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                SoHuCommonScript.domain,
              //  CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 17 * * ?",
                //"",
                "搜狐车系文章采集任务，每天17点采集一次");
    }

}
